From 3edebfb81c7d013641dd641886830851e446adf3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 23 Jun 2011 18:31:22 -0400 Subject: [PATCH] GtkSpinner: set a suitable role for the accessible The consensus of the accessibility team was that this is an animation. Update tests to match. --- gtk/gtkspinner.c | 1 + tests/a11y/spinner.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c index 306eeb8f9e..43070be548 100644 --- a/gtk/gtkspinner.c +++ b/gtk/gtkspinner.c @@ -285,6 +285,7 @@ gtk_spinner_accessible_initialize (AtkObject *accessible, atk_object_set_name (accessible, C_("throbbing progress animation widget", "Spinner")); atk_object_set_description (accessible, _("Provides visual indication of progress")); + atk_object_set_role (accessible, ATK_ROLE_ANIMATION); } static void diff --git a/tests/a11y/spinner.txt b/tests/a11y/spinner.txt index 35a91b2abe..21bdd948b7 100644 --- a/tests/a11y/spinner.txt +++ b/tests/a11y/spinner.txt @@ -7,7 +7,7 @@ window1 layer: window alpha: 1 spinner1 - "unknown" + "animation" parent: window1 index: 0 name: Spinner -- 2.30.2